package model

import "gorm.io/gorm"

type Market struct {
	gorm.Model
	Title   string `gorm:"type:varchar(60)" json:"title"`
	Content string `gorm:"type:text" json:"content"`
}

type MarketCate struct {
	gorm.Model
	Mid int `gorm:"type:int" json:"mid"`
	Cid int `gorm:"type:int" json:"cid"`
}

type Cate struct {
	gorm.Model
	Name string `gorm:"type:varchar(60)" json:"name"`
}
